Release Key Action Icon

Release Key Action

Declaration

<AMKEYUP SHIFT="yes/no" CTRL="yes/no" ALTGR="yes/no" ALT="yes/no" WINKEY="yes/no">

See Also

Send Keystrokes, Hold Down Key, Mouse

Description

Releases the specified key(s) that were previously held down using the "Hold Down Key" action. This action is only needed when a key or keys need to be held down during a mouse operation or across multiple steps. Otherwise the "Send Keystrokes" action should be used as it supports holding down special keys also.

Practical Usage

Generally the "Release Key" <AMKEYUP> action is used in conjunction with the Hold Down Key Action <AMKEYDOWN> action to release keys that were previously held-down spanning multiple steps. For example if the application being automated requires that the ALT key be held down while mouse clicks are taking place that task could begin with a Hold Down Key Action <AMKEYDOWN> action, followed by the Mouse <AMMOUSE> action steps, finally followed by this Release Key Action <AMKEYUP> step.

Parameters

General Tab

Shift
Yes/No, Optional Default NO
MARKUP: SHIFT="YES"

Specifies that the SHIFT key should be released. Useful only if a similarly configured "Hold Down Key" Action <AMKEYKUP> step has been included in a previous task step.

Ctrl
Yes/No, Optional Default NO
MARKUP: CTRL="YES"

Specifies that the CTRL key should be released. Useful only if a similarly configured "Hold Down Key" Action <AMKEYKUP> step has been included in a previous task step.

AltGr
Yes/No, Optional Default NO
MARKUP: ALTGR="YES"

Specifies that the ALTGR (found on many international keyboard layouts) key should be released. Useful only if a similarly configured "Hold Down Key" Action <AMKEYKUP> step has been included in a previous task step.

Alt
Yes/No, Optional Default NO
MARKUP: ALT="YES"

Specifies that the ALT key should be released. Useful only if a similarly configured "Hold Down Key" Action <AMKEYKUP> step has been included in a previous task step.

Winkey
Yes/No, Optional Default NO
MARKUP: WINKEY="YES"

Specifies that the WINKEY (the key with the Microsoft Windows logo on it) key should be released. Useful only if a similarly configured "Hold Down Key" Action <AMKEYKUP> step has been included in a previous task step.

Notes

Standard Error Handling Options
This action also includes the standard "Error Causes" and "On Error" failure handling options/tabs

More on Error Handling Options

Variables and Expressions
All text fields allow the use of expressions by surrounding the expression in percentage signs (example: %MYVARIABLE%, %Left('Text',2)%). To help construct these expressions, a popup expression builder is available in all these fields by pressing F2.
More on variables...

More on expressions...

More on the expression builder...

Example

<AMKEYUP SHIFT="YES">

<AMKEYUP SHIFT="YES" CTRL="YES" ALTGR="YES">